package cn.ronghuanet.auth.mapper;

import cn.ronghuanet.auth.domain.Role;
import cn.ronghuanet.auth.query.RoleQuery;
import cn.ronghuanet.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {

    void deleteRolePermissionByRoleId(Long roleId);

    // 如果mapper接口传递了多个参数,那么一定要使用@param
    void saveRolePermission(@Param("roleId") Long roleId, @Param("permissionSns") List<String> permissionSns);

    List<String> getPermissionSnsByRoleId(Long roleId);
}
